cqjs.component('priority', {
    template: `
        <el-rate
            v-model="data.data[$props.field.name]"
            @change="handleChange"
            style='width:100%'>
        </el-rate>
    `,
    props: ['field', 'data'],
    methods: {
        handleChange(v) {
            this.data.dirty[this.field.name] = v;
        }
    }
});